package com.zb.frame.modules.sys.service;

import com.zb.frame.modules.sys.entity.RelUserRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author bangZZ
 * @since 2020-06-04
 */
public interface RelUserRoleService extends IService<RelUserRole> {

    List<RelUserRole> getUserInfoByRoleId(String roleId);

    List<String> getRoleIdsByUserId(Long userId);

    List<RelUserRole> getRoleInfoByUserId(Long userId);

    boolean addRelBatch(List<RelUserRole> list);

    boolean deleteByRoleId(String roleId);

    boolean deleteByUserIdAndRoleIds(Long userId, List<String> roleIds);

}
